package cn.gotom.pinggu.pojos;


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.gotom.core.pojos.BaseEntity;

/**
 * 
 * 预警参照值
 * 
 * @author peixere@qq.com
 * 
 * @version 2012-12-03
 * 
 */
@Entity
@Table()
public class Yjczz extends BaseEntity implements Serializable
{
	private static final long serialVersionUID = 1L;

	/**
	 * 产品种类
	 */
	@JoinColumn(name = "cpzl_id", referencedColumnName = "id")
	@ManyToOne
	private Cpzl cpzl;

	/**
	 * 产品品位
	 */
	@JoinColumn(name = "cppw_id", referencedColumnName = "id")
	@ManyToOne
	private Cppw cppw;
	/**
	 * 原料品位
	 */
	@JoinColumn(name = "ylpw_id", referencedColumnName = "id")
	@ManyToOne
	private Ylpw ylpw;

	/**
	 * 测算方法
	 */
	@Column(name = "csff", length = 50)
	private CsffEnum csff;

	/**
	 * 物耗种类
	 */
	@JoinColumn(name = "whzl_id", referencedColumnName = "id")
	@ManyToOne
	private Whzl whzl;

	/**
	 * 单位产品物耗量
	 */
	@Column()
	private float dwcpwhl;

	/**
	 * 预警值百分比
	 */
	@Column(length = 11)
	private float yjz;

	/**
	 * 开始年月201201
	 */
	@Column(name = "sysj_ks", length = 11)
	private int sysjKs;

	/**
	 * 结束年月201212
	 */
	@Column(name = "sysj_js", length = 11)
	private int sysjJs;

	public Cpzl getCpzl()
	{
		return cpzl;
	}

	public void setCpzl(Cpzl cpzl)
	{
		this.cpzl = cpzl;
	}

	public Cppw getCppw()
	{
		return cppw;
	}

	public void setCppw(Cppw cppw)
	{
		this.cppw = cppw;
	}

	public Ylpw getYlpw()
	{
		return ylpw;
	}

	public void setYlpw(Ylpw ylpw)
	{
		this.ylpw = ylpw;
	}

	public CsffEnum getCsff()
	{
		return csff;
	}

	public void setCsff(CsffEnum csff)
	{
		this.csff = csff;
	}

	public Whzl getWhzl()
	{
		return whzl;
	}

	public void setWhzl(Whzl whzl)
	{
		this.whzl = whzl;
	}

	public float getDwcpwhl()
	{
		return dwcpwhl;
	}

	public void setDwcpwhl(float dwcpwhl)
	{
		this.dwcpwhl = dwcpwhl;
	}

	public float getYjz()
	{
		return yjz;
	}

	public void setYjz(float yjz)
	{
		this.yjz = yjz;
	}

	public int getSysjKs()
	{
		return sysjKs;
	}

	public void setSysjKs(int sysjKs)
	{
		this.sysjKs = sysjKs;
	}

	public int getSysjJs()
	{
		return sysjJs;
	}

	public void setSysjJs(int sysjJs)
	{
		this.sysjJs = sysjJs;
	}

}